﻿<?xml version="1.0" encoding="utf-8" ?>
<Recipe Name="BindingRecipe" xmlns="http://schemas.microsoft.com/pag/gax-core" xmlns:xi="http://www.w3.org/2001/XInclude">
	<xi:include href="Common/CommonTypeAliases.xml"
              xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(/gax:Types)" />
	<Caption>Creates unbound references to the guidance package</Caption>
	<Actions>
		<!--Project unbound references-->
		<Action Name="SpecifyProjectResponsibilityRef" Type="RefCreator" AssetName="SpecifyProjectResponsibility"
				    ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectSolutionPropertiesBasedReference, Microsoft.Practices.RepositoryFactory"
            IsEnabledForProperties="UnLocked" BoundIfPropertiesNotFound="True" />

		<!--BusinessEntities project unbound references-->
		<Action Name="CreateBEFromDBCSRef" Type="RefCreator" AssetName="CreateBEFromDBCS"
						ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectPropertyReferenceCS, Microsoft.Practices.RepositoryFactory"
            IsEnabledForProperty="IsBusinessEntityProject" />

    <Action Name="CreateBEFromDBVBRef" Type="RefCreator" AssetName="CreateBEFromDBVB"
        ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectPropertyReferenceVB, Microsoft.Practices.RepositoryFactory"
        IsEnabledForProperty="IsBusinessEntityProject" />
    
		<Action Name="CreateDataRepositoriesFromBEProjectCSRef" AssetName="CreateDataRepositoriesFromBEProjectCS" Type="RefCreator" 
							ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectPropertyReferenceCS, Microsoft.Practices.RepositoryFactory"
				IsEnabledForProperty="IsBusinessEntityProject" />

    <!--<Action Name="CreateDataRepositoriesFromBEProjectVBRef" AssetName="CreateDataRepositoriesFromBEProjectVB" Type="RefCreator"
          ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectPropertyReferenceVB, Microsoft.Practices.RepositoryFactory"
    IsEnabledForProperty="IsBusinessEntityProject" />-->
    
		<!--DataAccess project unbound references-->
		<Action Name="CreateCRUDSpRef" Type="RefCreator" AssetName="CreateCRUDSp"
						ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectPropertyReferenceAny, Microsoft.Practices.RepositoryFactory"
            IsEnabledForProperty="IsDataAccessProject" />
    
		<Action Name="CreateDataRepositoriesFromDCProjectCSRef" Type="RefCreator" AssetName="CreateDataRepositoriesFromDCProjectCS"
							ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectPropertyReferenceCS, Microsoft.Practices.RepositoryFactory"
				IsEnabledForProperty="IsDataAccessProject" />

    <!--<Action Name="CreateDataRepositoriesFromDCProjectVBRef" Type="RefCreator" AssetName="CreateDataRepositoriesFromDCProjectVB"
          ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectPropertyReferenceVB, Microsoft.Practices.RepositoryFactory"
    IsEnabledForProperty="IsDataAccessProject" />-->


    <!--Host project unbound references-->
		<Action Name="CreateSqlServerDBConnectionRef" Type="RefCreator" AssetName="CreateSqlServerDBConnection"
 						ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectPropertyReferenceAny, Microsoft.Practices.RepositoryFactory"
            IsEnabledForProperty="IsHostProject" />

    <Action Name="CreateOracleMsoraDBConnectionRef" Type="RefCreator" AssetName="CreateOracleMsoraDBConnection"
        ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectPropertyReferenceAny, Microsoft.Practices.RepositoryFactory"
        IsEnabledForProperty="IsHostProject" />

    <Action Name="CreateOracleOdpnetDBConnectionRef" Type="RefCreator" AssetName="CreateOracleOdpnetDBConnection"
        ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectPropertyReferenceAny, Microsoft.Practices.RepositoryFactory"
        IsEnabledForProperty="IsHostProject" />

    <!--item references-->
		<Action Name="CreateSqlServerDBConnectionFromConfigRef" Type="RefCreator" AssetName="CreateSqlServerDBConnectionFromConfig"
			      ReferenceType="Microsoft.Practices.RepositoryFactory.References.ConfigurationFileRecipeReference, Microsoft.Practices.RepositoryFactory" />

    <Action Name="CreateOracleMsoraDBConnectionFromConfigRef" Type="RefCreator" AssetName="CreateOracleMsoraDBConnectionFromConfig"
			      ReferenceType="Microsoft.Practices.RepositoryFactory.References.ConfigurationFileRecipeReference, Microsoft.Practices.RepositoryFactory" />

    <Action Name="CreateOracleOdpnetDBConnectionFromConfigRef" Type="RefCreator" AssetName="CreateOracleOdpnetDBConnectionFromConfig"
			      ReferenceType="Microsoft.Practices.RepositoryFactory.References.ConfigurationFileRecipeReference, Microsoft.Practices.RepositoryFactory" />
    
    <Action Name="CreateDataRepositoryCSRef" Type="RefCreator" AssetName="CreateDataRepositoryCS"
							ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectItemPropertyReferenceCS, Microsoft.Practices.RepositoryFactory"
				IsEnabledForProperty="IsBusinessEntityProject"/> 

    <!--<Action Name="CreateDataRepositoryVBRef" Type="RefCreator" AssetName="CreateDataRepositoryVB"
          ReferenceType="Microsoft.Practices.RepositoryFactory.References.ProjectItemPropertyReferenceVB, Microsoft.Practices.RepositoryFactory"
    IsEnabledForProperty="IsBusinessEntityProject"/>-->
	</Actions>
</Recipe>
